lib/commit: Move txn stagedir deletion/unlock into one place
authorColin Walters <walters@verbum.org>
Tue, 28 Nov 2017 18:01:46 +0000 (13:01 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Dec 2017 19:00:18 +0000 (19:00 +0000)
commit4eae6529ed478e9a6fa55fc43f127043ff4db287
treeef9c54d772fcea848ff62ca0965ccc13ff64b4ab
parent681a62b92c80ee25fb01e2917b730e00960b8340
lib/commit: Move txn stagedir deletion/unlock into one place

Previously we'd delete the tmpdir in `rename_pending_loose_objects()`
but do the unlock inside `ostree_repo_commit_transaction()`.  Move
them into the same place in the latter function for consistency.

Doesn't fix anything, just a cleanup while reading the code and
working on `test-concurrency.py`.

Closes: #1352
Approved by: dbnicholson
src/libostree/ostree-repo-commit.c